/** 布 局 样 式 */
#app,
body,
html {
  height: 100vh;
  margin: 0;
  padding: 0;
}
#layout {
  height: 100%;
}
#layout.layout-head.theme-light {
  #logo {
    height: 64px;
    border-bottom: 1px solid whitesmoke;
    background: white;
  }
  #header {
    padding-left: 0px;
    padding-right: 15px;
  }
}
#layout.layout-head.theme-dark {
  #logo {
    height: 64px;
    img {
      margin-top: -3.5px;
    }
    border-bottom: 1px solid #101117;
    background: #191a23;
  }
  #header {
    .next-menu .menu-item:hover {
      background-color: black !important;
    }
    padding-left: 0px;
    padding-right: 15px;
    background-color: #191a23;
    color: white;
  }
  .el-header {
    background-color: #191a23;
    box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35);
  }
}
#layout.theme-dark.layout-side {
  #logo {
    height: 64px;
    border-bottom: 1px solid #101117;
    background: #191a23;
  }
  #header {
    padding-left: 15px;
    padding-right: 15px;
  }
  .el-asider {
    box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35);
    z-index: 999;
  }
}
#layout.theme-light.layout-side {
  #logo {
    height: 64px;
    border-bottom: 1px solid whitesmoke;
    background: white;
  }
  #header {
    padding-left: 15px;
    padding-right: 15px;
  }
  .el-aside {
    box-shadow: 2px 0 8px 0 rgba(29, 35, 41, 0.05) !important;
    background-color: white !important;
    z-index: 999;
  }
}
#layout.theme-dark.layout-comp {
  #logo {
    height: 64px;
    border-bottom: 1px solid #101117;
    background: #191a23;
  }
  #header {
    padding-left: 15px;
    padding-right: 15px;
  }
  .el-header {
    .comp-menu {
      display: inline-block;
      height: 64px;
      line-height: 64px;
      padding-left: 30px;
      .menu-item {
        color: unset;
        height: 64px;
        line-height: 64px;
        display: inline-block;
        padding-left: 15px;
        padding-right: 15px;
        font-size: 14.5px;
      }
      .is-active {
        background-color: whitesmoke;
      }
    }
    background-color: white !important;
  }
  .el-aside {
    box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35);
    z-index: 999;
  }
}
#layout.theme-light.layout-comp {
  #logo {
    height: 64px;
    border-bottom: 1px solid whitesmoke;
    background: white;
  }
  #header {
    padding-left: 15px;
    padding-right: 15px;
  }
  .el-header {
    .comp-menu {
      display: inline-block;
      height: 64px;
      line-height: 64px;
      padding-left: 30px;
      .menu-item {
        height: 64px;
        line-height: 64px;
        display: inline-block;
        padding-left: 15px;
        padding-right: 15px;
        font-size: 14.5px;
      }
      .is-active {
        background-color: whitesmoke;
      }
    }
    background-color: white !important;
  }
  .el-aside {
    box-shadow: 2px 0 8px 0 rgba(29, 35, 41, 0.05) !important;
    z-index: 999;
    background-color: white !important;
  }
}

#layout {
  .el-container {
    position: relative;
    .el-header {
      padding-left: 0px;
      padding-right: 0px;
      box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
      z-index: 100;
      height: 112px !important;
    }

    .el-main {
      position: absolute;
      top: 112px;
      left: 0;
      right: 0;
      bottom: 60px;
      z-index: 200;
      background: whitesmoke;
      padding: 0px !important;

      #content {
        display: flex;
        flex-direction: column;
        height: 100%;

        .content-header {
          flex-shrink: 0;
        }

        .content-body {
          flex: 1 1 auto;
        }
      }
    }

    .el-footer {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      text-align: center;
      height: 60px !important;
    }
  }
}

// 菜单样式
.el-menu {
  .el-menu-item {
    height: 48px;
    line-height: 48px;
  }

  .el-submenu {
    .el-menu-item {
      height: 48px;
      line-height: 48px;
    }
  }
}

.el-aside {
  background: #191a23 !important;
  &.fixed-side {
    height: 100vh;
    position: relative;
    overflow: hidden !important;
    & > .el-aside-children > div {
      position: absolute;
      left: 0;
      top: 0;
      right: -17px;
      bottom: 0;
      overflow-x: hidden;
      overflow-y: scroll;
    }
  }
}

.el-drawer {
  .el-drawer__body {
    position: relative;
    height: 90%;
    display: flex;
    flex-direction: column;

    .content-header {
      flex-shrink: 0;
    }

    .content-body {
      position: relative;
      flex: 1 1 auto;
      overflow: auto;
    }
  }
}

// 图标 顶部 样式
#logo {
  text-align: center;
}
#logo .image {
  margin-top: 11px;
  height: 38px;
}
#logo .title {
  display: inline-block;
  color: #1890ff !important;
  font-size: 20px;
  margin-top: 2px;
  height: 60px;
  font-weight: 700;
  line-height: 53px;
}
#header {
  position: relative;
  height: 65px;
  line-height: 65px;
  background-color: white;
}
#header .next-menu {
  position: absolute;
  right: 0;
  top: 0px;
  height: 35px;
  padding-top: 15px;
  vertical-align: middler;
}
#header .prev-menu {
  position: absolute;
  display: inline-block;
  height: 65px;
}
#header .head-logo {
  width: 250px;
  height: 64px;
  display: inline-block;
}
#header .head-menu {
  .ant-menu {
    height: 65px;
    line-height: 65px;
  }
  display: inline-block;
}
#header .prev-menu .menu-item,
#header .next-menu .menu-item {
  font-size: 15.8px;
  padding: 0 13.5px;
  height: 64px;
  line-height: 64px;
  display: inline-block;

  i {
    font-size: 20px;
  }
}
.header-dropdown {
  width: 150px !important;
}
#header .prev-menu .avatar-item,
#header .next-menu .avatar-item {
  margin-left: 13px;
  margin-right: 13px;
  height: 60px;
  width: 40px;
  padding-top: 13px;
  padding-bottom: 15px;
  padding-right: 5px;
  padding-left: 5px;
  display: inline-block;
  img {
    border-radius: 100px;
  }
}
#header .prev-menu .menu-item:hover,
#header .next-menu .menu-item:hover {
  background-color: #f7f7f7;
}

/** 头 部 固 定 样 式 */
.fixedHeader {
  #content {
    height: 100%;
  }
}
.fixedHeader.muiltTab {
  #content {
    height: calc(~'(100% - 51px)');
  }
}

/** 主 题 配 置 样 式 */
.pearone-color .color-title {
  padding: 15px 0 0px 20px;
  margin-bottom: 4px;
}
.pearone-color .color-content {
  padding: 15px 10px 0 20px;
}
.pearone-color .color-content ul {
  list-style: none;
  padding: 0px;
}
.pearone-color .color-content ul li {
  position: relative;
  display: inline-block;
  vertical-align: top;
  width: 70px;
  height: 50px;
  margin: 0 20px 20px 0;
  padding: 2px 2px 2px 2px;
  background-color: #f2f2f2;
  cursor: pointer;
  font-size: 12px;
  color: #666;
  border-radius: 6px;
}
.pearone-color .color-content li.layui-this:after,
.pearone-color .color-content li:hover:after {
  width: 81px;
  height: 63px;
  top: -6px;
  left: -5px;
  border: #1890ff 2.2px solid;
  opacity: 1;
  border-radius: 6px;
}
.pearone-color .color-content li:after {
  content: '';
  position: absolute;
  z-index: 20;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 0;
  border: 1px solid #f2f2f2;
  transition: all 0.3s;
  -webkit-transition: all 0.3s;
  opacity: 0;
}
.select-color {
  margin-bottom: 30px;
}
.select-color .select-color-title {
  padding: 10px 0 0px 20px;
  margin-bottom: 4px;
}
.select-color .select-color-content {
  padding: 20px 0 0px 0px;
  margin-bottom: 4px;
}
.select-color .select-color-content .select-color-item {
  background-color: gray;
  width: 25px;
  height: 25px;
  border-radius: 3px;
  float: left;
  margin-left: 20px;
  color: white;
  font-size: 13px;
  line-height: 25px;
  text-align: center;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.15);
  line-height: 30px;
}

.card-base {
  .card-base-icon {
    text-align: center;
    i {
      font-size: 30px;
    }
  }
  .card-base-title {
    font-size: 14px;
    text-align: center;
    margin-top: 16px;
  }
}
